package com.shushan.home.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: StarsChildBean
 * @Desciption: //我的学贝页面childbean
 * @author: zhangshihao
 * @date: 2018-05-12
 */
public class StarsChildBean extends NetBaseBean {

    public int id;//孩子id
    public String child_name;//孩子名字
    public String child_avatar;//孩子头像url
    public int stars;//孩子学贝数
    public String unclaimed_prize;//有的话隐藏系统奖励，没有的话显示系统奖励

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",0);
        child_name = jsonObject.optString("child_name","");
        child_avatar = jsonObject.optString("child_avatar","");
        stars = jsonObject.optInt("stars",0);
        unclaimed_prize = jsonObject.optString("unclaimed_prize","");
    }
}
